package com.tdam2011.grupo05.entities.message;

import java.util.Date;

import com.tdam2011.grupo05.entities.Model;

import android.provider.BaseColumns;

public class MessageWeb extends Model {

	public static final String TABLE_NAME = "message";
	public static final String COL_ID = BaseColumns._ID;
	public static final String COL_ID_THREAD = "fk_id_thread";
	public static final String COL_TEXT = "text";
	public static final String COL_TYPE = "message_type";
	public static final String COL_TIMESTAMP = "timestamp";
	public static final String COL_RESULT = "result";
	public static final String COL_STATE = "state";

	private long idThread;
	private String text;
	private Date timestamp;
	private String result;
	private State state;
	private Type type;

	public enum State {
		UNSENDED, SENDED, UNREAD, READED, ERROR, CANCELED
	}

	public enum Type {
		INCOMING, OUTGOING
	}

	public MessageWeb() {

	}

	public long getIdThread() {
		return idThread;
	}

	public void setIdThread(long idThread) {
		this.idThread = idThread;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getResult() {
		return result;
	}

	public void setState(State state) {
		this.state = state;
	}

	public State getState() {
		return state;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public Type getType() {
		return type;
	}

}
